package com.com.effectivejava.generics.examples;

import com.com.util.Sorter;

import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;

/**
 * Created by pankaj on 7/20/14.
 */
public class SorterClient {

    static Logger logger = Logger.getLogger(SorterClient.class.getName());

    static {
        logger.setParent(Logger.getLogger(SorterClient.class.getPackage().getName()));
    }

    static List<Number> numbers= new ArrayList<>();
    static List<Integer> integers = new ArrayList<Integer>(){{
        add(3);
        add(1);
        add(2);
        add(0);
    }};
    static List<Double> doubles = new ArrayList<Double>();

    public static void main(String[] args) {
        Sorter<Integer> sorter = new Sorter<>();

        sorter.add(integers);
        sorter.sort();
        sorter.results(numbers);

        for(Number n:numbers){
            logger.info(""+n);
        }

    }
}
